var express = require('express')
var router = express.Router()

var cb0 = function (req , res , next) {
    console.log('cb0');
    next()
}
var cb1 = function (req , res , next) {
    console.log('cb1');
    next()
}
var cb2 = function (req , res , next) {
    console.log('cb2');
    next()
}

router.use(function timeLog(req , res , next) {
    console.log('Time : ' , Date.now());
    next()

})

router.get('/' , [cb0 ,cb1] ,function (req , res , next) {
    res.send('Birds home page')
    next()
},cb2)

router.get('/about' , function (req , res) {
    res.send('About birds')

})

module.exports= router
